﻿$.parser.onComplete = function () {
    setTitle();
    $("#Loading").fadeOut(400, function () {
        $(this).remove();
    });
}
function setTitle() {
    var index = Request.QueryString("current");
    if (index != null) {
        $('#dl').datalist('selectRow', index != null ? index : -1);
        $("div.layout-panel-center>div.panel-header>div.panel-title").text("管理中心 > " + $('#dl').datalist('getSelected').text);
    }
}
$("#dl").datalist({
    onClickRow: function (index, row) {
        location.href = row.value + "?current=" + index;
    }
});
$('#mm1').menu({
    onClick: function (item) {
        location.href = item.href + "&r=" + Math.random();
    }
});